package com.ziyun.erp.modules.production.operate;

import com.ziyun.erp.modules.production.operate.entity.AllotStateEntity;
import com.ziyun.erp.modules.production.operate.entity.AuditStateEntity;
import com.ziyun.erp.modules.production.operate.entity.LogisticsStateEntity;
import com.ziyun.erp.modules.production.operate.entity.ReceiveStateEnity;
import io.renren.common.utils.R;

/**
 * @author guizhao
 * @Title: erp生产订单抽象状态
 * @ProjectName ziyun-service-erp
 * @Description: 生产状态, forward :1.待生产 -->  2.生产中 -->  3.生产完成  ;
 *                           rollback: 3.生产完成 --> 2.生产中 --> 1.待生产 --> 4.取消
 * @date 2018-09-07 11:22
 */
public interface ErpOrderState {

    R audit(AuditStateEntity auditStateEntity);//审核

    R allot(AllotStateEntity allotStateEntity);//分配

    R receive(Integer productionId);//确认收货

    R addLogistics(LogisticsStateEntity logisticsStateEntity, String userId, String createName);//添加物流

    R allotPriceFinish(Integer productionId);//审核完成

    R cancleAllot(Integer productionId);//取消分配

}
